/*
 * @Author: 朱安武 549410045@qq.com
 * @Date: 2023-01-11 17:33:27
 * @LastEditors: 朱安武 549410045@qq.com
 * @LastEditTime: 2023-02-01 14:43:30
 * @FilePath: \mobile\src\stores\adminStore.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineStore } from 'pinia'

//用户信息
export const useAdminStore = defineStore('adminStore', {
    state() {
        return {
            userName: localStorage.getItem('userName') || ''
        }
    },
    actions: {
        setuserName(name: string) {
            this.userName = name
        }
    }
})

